#用于创建本地主机
import http.server 
import socketserver 

PORT= 80 

Handler= http.server.SimpleHTTPRequestHandler 
Handler.extensions_map.update({
".js":"application/javascript",
});

#print(Handler.extensions_map)
httpd = socketserver.TCPServer(("",PORT),Handler)
httpd.serve_forever()